package com.niit.springbootshop.service.impl;

import com.niit.springbootshop.dao.CategoryDao;
import com.niit.springbootshop.entity.Category;
import com.niit.springbootshop.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: springboot-demo
 * @description:
 * @author: hanliang
 * @create: 2021-05-11 08:57
 **/
@Service
public class CategoryServiceImpl implements CategoryService {

    @Autowired
    CategoryDao dao;

    @Override
    public List<Category> getAll() {
        return dao.getAll();
    }
}
